const Tabbar = () =>
    import ('@/components/TabMaterial/');

const HomeTabbar = () =>
    import ('@/components/HomeTabbar/');

export default [{
        path: '/material/home',
        name: 'materialHome',
        components: {
            default: () =>
                import ('@/views/material/home'),
        },
        meta: {
            title: '发现'
        }
    },
    {
        path: '/material/material/:type',
        name: 'discovery',
        components: {
            default: () =>
                import ('@/views/material/material'),
            tabbar: HomeTabbar
        },
        meta: {
            keepAlive: true,
            title: '发现'
        }
    },
    {
        path: '/material/goodsMaterial',
        name: 'goodsMaterial',
        components: {
            default: () =>
                import ('@/views/material/materialGoods'),
        },
        meta: {
            title: '发现'
        }
    }
];